package fsoft.com.vn.directory.service;

import fsoft.com.vn.directory.dao.AddressDAO;
import fsoft.com.vn.directory.form.Address;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
public class AddressServiceImpl implements AddressService {

	@Autowired
	private AddressDAO addressDAO;
	

	@Transactional
	public List<Address> listAddress() {
		return addressDAO.listAddress();
	}

	@Transactional
	public List<Address> search(String postcode, String street, String town) {
	 return addressDAO.search(postcode,street,town);
	}



}
